package entities;

import java.io.Serializable;

import javax.persistence.*;

@Entity
@Table(name="precio")
@Inheritance(strategy=InheritanceType.SINGLE_TABLE)
@DiscriminatorColumn(name="tipo",discriminatorType=DiscriminatorType.STRING)
public class PrecioEntity  implements Serializable
{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	@Id
	private int id;
	
	@Column (name = "precioKM", nullable = false)
	protected float precioKM;
	
	public PrecioEntity()
	{}
	
	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public float getPrecioKM() {
		return precioKM;
	}
	public void setPrecioKM(float precioKM) {
		this.precioKM = precioKM;
	}

	
}
